package com.aaa.sb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * className:HelloSpringBoot
 * discription:
 * author:zz
 * createTime:2018-11-21 09:36
 */
@RestController//默认该类里面的所有方法返回值都是json
@RequestMapping("/list")
public class HelloSpringBoot {

    /**
     * 打印
     * @return
     */
    @RequestMapping("/hello")
    public Object print(){
        return "hello springBoot1....";
    }
}
